package com.ort.ezcalendar;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

import com.ort.ezcalendar.notificaciones.ManejadorAlarmas;

public class DummyMainActivity extends Activity {

	private ManejadorAlarmas mngrAlarmas;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		SharedPreferences settings = getSharedPreferences("preferencias",
				MODE_PRIVATE);
		if (settings.getString("usuario", "").equals("")) {
			Intent i = new Intent(this, LoginActivity.class);
			startActivity(i);
		} else {
			Intent i = new Intent(this, MenuPrincipalActivity.class);
			startActivity(i);
		}
		mngrAlarmas = new ManejadorAlarmas(this);
		mngrAlarmas.inicializarAlarmas();
	}

	
}
